<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>商品编辑</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <link rel="stylesheet" type="text/css" href="../bootstrap-custom/css/bootstrap-1206.css"/>
    <link rel="stylesheet" type="text/css" href="../bootstrap-custom/plugin/datetimepicker/datetimepicker.min.css"/>
    <link rel="stylesheet" type="text/css" href="../bootstrap-custom/plugin/select2/select2.css"/>

    <!--[if lte IE 6]>
    <link rel="stylesheet" type="text/css" href="../bootstrap-custom/css/bootstrap-1206.ie6.css"/>
    <![endif]-->
    <!--[if lte IE 7]>
    <link rel="stylesheet" type="text/css" href="../bootstrap-custom/css/ie.css"/>
    <![endif]-->

    <link rel="stylesheet" type="text/css" href="../bootstrap-custom/css/bootstrap-1206.fix.css"/>
    <link rel="stylesheet" type="text/css" href="../css/manage.css"/>
</head>

<body>
<!-- 用 JS 设置页面的导航菜单 -->
<script>
    window.bz_set_nav_status = []; // 用于设置导航栏状态的数组，里面是很多设置 function()
</script>
<!-- /用 JS 设置页面的导航菜单 -->

<!-- 顶部导航菜单 -->
<div id="system_top_navbar" class="navbar navbar-static-top">
    <div class="navbar-inner">
        <div class="container">
            <a class="brand" href="#">棒主妇</a>
            <ul class="nav">
                <li><a href="#">账号[admin]</a></li>
                <li class="active"><a href="#">商品管理</a></li>
                <li><a href="#">订单管理</a></li>
                <li><a href="#">账号管理</a></li>
            </ul>
        </div>
    </div>
</div>
<!-- /顶部导航菜单 -->

<!-- 信息提示区 -->
<div class="container" style="margin-top:10px;margin-bottom:0px;">
    <div class="alert alert-error">
        <button type="button" class="close" data-dismiss="alert">
            &times;
        </button>
        <div class="flashMessage">
            <strong>注意：</strong> 这里是消息通知区
        </div>
    </div>
</div>
<!-- 信息提示区 -->

<!-- main_body -->
<div id="main_body" class="container">

    <!-- ====================================== 这里是页面的主体内容 ============================================ -->

    <div class="row bz_basic_content_block bz_box_shadow" style="padding:10px 10px 10px 10px;">

        <!-- 页面上方导航条 -->
        <div class="row">
            <ul class="nav nav-tabs">
                <li class="dropdown active">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#">商品列表<b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li><a href="#">在线商品</a></li>
                        <li><a href="#">下线商品</a></li>
                    </ul>
                </li>
            </ul>
        </div>
        <!-- /页面上方导航条 -->

        <!-- 商品编辑页面主体内容 -->
        <div class="tabbable tabs-left">

            <!-- 编辑页面左侧标签导航 -->
            <ul class="nav nav-tabs">
                <li class=""><a href="/">商品信息</a></li>
                <li class="active"><a href="#">团购信息</a></li>
                <li class=""><a href="/">推广渠道</a></li>
            </ul>
            <!-- /编辑页面左侧标签导航 -->

            <form class="form-horizontal form-horizontal-inline form-dirty-check" method="POST"
                  style="margin: 0px 0px 0px 0px;">

                <!-- 左侧每个标签的具体内容 -->
                <div class="tab-content">

                    <!-- 商品的团购设置 -->
                    <div id="goods_edit_goods_team" class="tab-pane well active">

                        <div class="control-group">
                            <div class="controls">
                                <span class="input-label">开启团购</span>
                                <select id="goods_edit_goods_team_enable" class="span2 select2-simple"
                                        name="goods_team[team_enable]"
                                        data-initValue="1">
                                    <option value="0">关闭团购</option>
                                    <option value="1">开启团购</option>
                                </select>
                            </div>
                        </div>

                        <div class="control-group">
                            <div class="controls">
                                <span class="input-label" rel="tooltip" data-placement="top" data-title="团购可以有独立的标题">团购标题</span>
                                <input class="span9" name="goods_team[team_title]" type="text"
                                       data-validation-required-message="团购标题不能为空"/>
                            </div>
                        </div>

                        <div class="control-group">
                            <div class="controls">
                                <span class="input-label">SEO关键词</span>
                                <input class="span5" name="goods_team[team_seo_keyword]" type="text"/>
                            </div>
                        </div>

                        <div class="control-group">
                            <div class="controls">
                                <span class="input-label">SEO描述</span>
                                <textarea class="span5" rows="3" name="goods_team[team_seo_description]"></textarea>
                            </div>
                        </div>

                        <div class="control-group">
                            <div class="controls">
                                <span class="input-label">团购价</span>
                                <input class="span1" name="goods_team[team_price]" type="text" pattern="^\d+(\.\d+)?$"
                                       data-validation-required-message="团购价不能为空"
                                       data-validation-pattern-message="团购价无效"/>
                                <span class="input-label" rel="tooltip" data-placement="top"
                                      data-title="输出团购商品的排序">团购排序</span>
                                <input class="span1" name="goods_team[team_sort_order]" type="text" pattern="[0-9]+"
                                       data-validation-required-message="团购排序不能为空"
                                       data-validation-pattern-message="团购排序无效"/>
                                <span class="comments">数字越大排序越前</span>
                            </div>
                        </div>

                        <div class="control-group">
                            <div class="controls">
                                <span class="input-label" rel="tooltip" data-placement="top"
                                      data-title="每个账号最多可以买多少个">每人限购数量</span>
                                <input class="span1" name="goods_team[team_per_number]" type="text" pattern="[0-9]+"
                                       data-validation-required-message="每人限购数量不能为空"
                                       data-validation-pattern-message="每人限购数量无效"/>
                                <span class="input-label" rel="tooltip" data-placement="top"
                                      data-title="每个账号每次最少可以买多少个">每次限购下限</span>
                                <input class="span1" name="goods_team[team_min_number]" type="text" pattern="[0-9]+"
                                       data-validation-required-message="每次限购下限不能为空"
                                       data-validation-pattern-message="每次限购下限无效"/>
                                <span class="input-label" rel="tooltip" data-placement="top"
                                      data-title="每个账号每次最多可以买多少个">每次限购上限</span>
                                <input class="span1" name="goods_team[team_max_number]" type="text" pattern="[0-9]+"
                                       data-validation-required-message="每次限购上限不能为空"
                                       data-validation-pattern-message="每次限购上限无效"/>
                                <span class="input-label" rel="tooltip" data-placement="top"
                                      data-title="用于虚增购买数字">虚拟购买</span>
                                <input class="span1" name="goods_team[team_pre_number]" type="text" pattern="[0-9]+"
                                       data-validation-required-message="虚拟购买不能为空"
                                       data-validation-pattern-message="虚拟购买无效"/>
                                <span class="input-label" rel="tooltip" data-placement="top"
                                      data-title="虚拟+真实购买的总数">总购买数</span>
                                <input class="span1" type="text" disabled="disabled"
                                       value="1"/>
                            </div>
                        </div>

                        <div class="control-group">
                            <div class="controls">
                                <span class="comments">说明：数字 0 表示不限购</span>
                            </div>
                        </div>

                        <div class="control-group">
                            <div class="controls">

                                <span class="input-label">团购开始时间</span>

                                <div class="input-append date datetimepicker" style="float:left;">
                                    <input class="span2" type="text" name="goods_team[team_begin_time]"
                                           data-validation-required-message="团购开始时间不能为空"/>
                                        <span class="add-on">
                                            <i data-time-icon="icon-time" data-date-icon="icon-calendar"></i>
                                        </span>
                                </div>

                                <span class="input-label">团购结束时间</span>

                                <div class="input-append date datetimepicker" style="float:left;">
                                    <input class="span2" type="text" name="goods_team[team_end_time]"
                                           data-validation-required-message="团购结束时间不能为空"/>
                                        <span class="add-on">
                                            <i data-time-icon="icon-time" data-date-icon="icon-calendar"></i>
                                        </span>
                                </div>
                            </div>
                        </div>


                    </div>
                    <!-- /商品的团购设置 -->

                    <!-- 提交按钮 -->
                    <div class="row" style="text-align: center;">
                        <button type="submit" class="btn btn-success">确认提交</button>
                    </div>
                    <!-- /提交按钮 -->

                </div>
                <!-- /左侧每个标签的具体内容 -->

            </form>

        </div>
        <!-- /商品编辑页面主体内容 -->

    </div>

    <!-- ====================================== /这里是页面的主体内容 ============================================ -->

</div>
<!-- /main_body -->

<!-- 让 main_body 和下面的 footer 中间隔离出一段距离 -->
<div id="main_body_tail" class="container">&nbsp;</div>
<!-- /让 main_body 和下面的 footer 中间隔离出一段距离 -->

<script type="text/javascript" src="../bootstrap-custom/js/json2.js"></script>
<script type="text/javascript" src="../bootstrap-custom/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="../bootstrap-custom/js/jquery.cookie.js"></script>
<script type="text/javascript" src="../bootstrap-custom/js/jquery.lazyload.min.js"></script>
<script type="text/javascript" src="../bootstrap-custom/js/bootstrap.min.js"></script>
<script type="text/javascript" src="../bootstrap-custom/js/bootstrap.ie.js"></script>
<script type="text/javascript" src="../bootstrap-custom/js/validator.js"></script>
<script type="text/javascript" src="../bootstrap-custom/plugin/datetimepicker/datetimepicker.min.js"></script>
<script type="text/javascript" src="../bootstrap-custom/plugin/select2/select2.min.js"></script>
<script type="text/javascript" src="../bootstrap-custom/plugin/dirtyform/jquery.are-you-sure.js"></script>
<script type="text/javascript" src="../bootstrap-custom/kindeditor/kindeditor-min.js"></script>
<script type="text/javascript" src="../bootstrap-custom/kindeditor/lang/zh_CN.js"></script>
<script>
    var WEB_ROOT_BASE = 'http://127.0.0.1/PHPStorm/bzfshop/src/manage/Public';
</script>
<script type="text/javascript" src="../js/manage.js"></script>

<!--[if lte IE 9]>
<script type="text/javascript" src="../bootstrap-custom/js/iefix.js"></script>
<![endif]-->

<!-- 尾部 footer -->
<div class="navbar navbar-fixed-bottom">
    <div class="navbar-inner">
        <div class="container">
            <div class="row" style="text-align:center;">
                <span>版权所有：bzfshop 2012-2013</span>
            </div>
        </div>
    </div>
</div>
<!-- /尾部 footer -->

</body>
</html>